package interfaces;

import java.sql.SQLException;
import java.util.Collection;
import java.util.List;

import exceptions.ConexaoException;
import exceptions.ControllerException;

import model.Estado;

public interface EstadoInterface {
	
	public Estado PesquisarPorNome(String nome)throws  ClassNotFoundException, SQLException, ControllerException,ConexaoException;
	
	public void inserir(Estado estado )throws  ClassNotFoundException, SQLException, Exception,ControllerException,ConexaoException;
	
	public Collection <Estado> listartodos() throws ClassNotFoundException, SQLException, ControllerException, ConexaoException;
	
	public  void alterar (Estado estado) throws ClassNotFoundException, SQLException,ControllerException,ConexaoException;
	
	public void excluir(int id) throws SQLException, ClassNotFoundException,ControllerException,ConexaoException;
	
	public List<Estado> getLista() throws SQLException, ConexaoException, ClassNotFoundException;


}
